//package cn.zyq.nutlet.system.init;
//
//import cn.zyq.nutlet.system.version.VersionService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.ApplicationArguments;
//import org.springframework.boot.ApplicationRunner;
//import org.springframework.core.annotation.Order;
//import org.springframework.stereotype.Service;
//
///**
// * 系统初始化服务
// * 如进行jvm启动版本更新
// */
//@Service
//@Slf4j
//@Order(1)
//public class InitService implements ApplicationRunner {
//    @Autowired
//    private ScriptParams scriptParams;
//    @Autowired
//    private VersionService versionService;
//
//    @Override
//    public void run(ApplicationArguments args) throws Exception {
//        this.updateAppVersion();
//    }
//
//    /**
//     * 更新整个应用的版本号
//     */
//    private void updateAppVersion() {
//        if (this.scriptParams.getUpdateVersion()) {
//            this.versionService.setVersion();
//        }
//    }
//}
